import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/userWalletLog/index',
    method: 'get',
    params: query
  })
}

export function getWalletByUserId(id) {
  return request({
    url: '/userWalletLog/getWalletByUserId',
    method: 'get',
    params: { user_id: id }
  })
}

export function updateBalance(data) {
  return request({
    url: '/userWalletLog/updateBalance',
    method: 'post',
    data
  })
}
